package com.preqel.mvp;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.preqel.mvp.constant.MainContract;

public class MainActivity extends AppCompatActivity implements MainContract.IView{


    private TextView mMain ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mMain = findViewById(R.id.tv_main);
    }

    @Override
    public void refresh(String result) {
        mMain.setText(result);
    }
}